###启动

#!/bin/sh

# jenkins don't kill process 
export BUILD_ID=dontkillme

moduleName=`find ./ -name  *.jar |sed 's#.*/##'`
echo $moduleName

pid=`ps aux | grep $moduleName | grep -v grep | awk '{print $2}'`
echo $pid
[ -n "$pid" ] && kill -9 $pid

nohup java -jar $moduleName -server -Xms200m -Xmx200m -Xss256k  > ./run.log 2>&1 &

echo "start successed!!!"
